<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <title>登录-后台管理系统</title>
    <meta name="keywords" content="设置关键词..."/>
    <meta name="description" content="设置描述..."/>
    <meta name="author" content="DeathGhost"/>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name='apple-touch-fullscreen' content='yes'>
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no">
    <meta name="format-detection" content="address=no">
    <link rel="icon" href="/content/images/icon/favicon.ico" type="image/x-icon">
    <link rel="stylesheet" type="text/css" href="/css/style.css"/>
    <script src="/js/jquery.js"></script>
    <script src="/js/public.js"></script>
    <script src="/js/plug-ins/customScrollbar.min.js"></script>
    <script>

        $(function () {
            $("form").submit(function (e) {

            });


            $('#entry').click(function () {
                if ($('#adminName').val() == '') {
                    $('.mask,.dialog').show();
                    $('.dialog .dialog-bd p').html('请输入管理员账号');

                } else if ($('#adminPwd').val() == '') {
                    $('.mask,.dialog').show();
                    $('.dialog .dialog-bd p').html('请输入管理员密码');

                } else {

                    $("form").submit();

                }
            });
        });


    </script>
</head>
<body class="login-page">
<section class="login-contain">
    <c:if test="${msg!=null}">
        <script>
            $(function () {
                $('.mask,.dialog').show();
                $('.dialog .dialog-bd p').html('${msg}');
            });

        </script>

    </c:if>

    <header>
        <h1>后台管理系统</h1>
        <p>management system</p>
    </header>
    <form action="/admin/login" method="POST" id="fm">
        <div class="form-content">
            <ul>
                <li>
                    <div class="form-group">
                        <label class="control-label">管理员账号：</label>
                        <input type="text" name="username" placeholder="管理员账号..." value="admin" class="form-control form-underlined"
                               id="adminName"/>
                    </div>
                </li>
                <li>
                    <div class="form-group">
                        <label class="control-label">管理员密码：</label>
                        <input type="password" name="pwd" value="feizhougaici" placeholder="管理员密码..." class="form-control form-underlined"
                               id="adminPwd"/>
                    </div>
                </li>
                <li>
                    <label class="check-box">
                        <input type="checkbox" name="remember"/>
                        <span>记住账号密码</span>
                    </label>
                </li>
                <li>
                    <button class="btn btn-lg btn-block" id="entry">立即登录</button>
                </li>
                <li>
                    <p class="btm-info">©Copyright 2010-2016 <a href="#" target="_blank"
                                                                title="DeathGhost">yunmai.cn</a></p>
                    <address class="btm-info">秦皇岛云麦信息科技有限公司</address>
                </li>
            </ul>
        </div>
    </form>
</section>
<div class="mask"></div>
<div class="dialog">
    <div class="dialog-hd">
        <strong class="lt-title">标题</strong>
        <a class="rt-operate icon-remove JclosePanel" title="关闭"></a>
    </div>
    <div class="dialog-bd">
        <!--start::-->
        <p>这里是基础弹窗,可以定义文本信息，HTML信息这里是基础弹窗,可以定义文本信息，HTML信息。</p>
        <!--end::-->
    </div>
    <div class="dialog-ft">
        <button class="btn btn-info JyesBtn">确认</button>
        <button class="btn btn-secondary JnoBtn">关闭</button>
    </div>
</div>
</body>
</html>
